//
//  PhotoMode.m
//  CarTown
//
//  Created by xionghao on 15/8/5.
//  Copyright (c) 2015年 熊浩. All rights reserved.
//

#import "PhotoMode.h"

@implementation PhotoMode
-(void)setImgurls:(NSArray *)imgurls{
    _imgurls=imgurls;
    CGFloat photoviewwith=XHScreenwidth-64-8;
    CGFloat imgwidth=((photoviewwith-24)/4);
    CGFloat photoviewy=16;
    if (imgurls.count<=4) {
        self.rowheight=photoviewy+imgwidth+16;
    }else{
        self.rowheight=photoviewy+2*imgwidth+24;
    }
}
@end
